package cf.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cf.dao.RoleMapper;
import cf.model.Role;

@Service("roleService")
public class RoleServiceImpl implements RoleService {
	
	private RoleMapper roleMapper;
	
	public RoleMapper getRoleMapper() {
		return roleMapper;
	}

	@Autowired
	public void setRoleMapper(RoleMapper roleMapper) {
		this.roleMapper = roleMapper;
	}

	@Override
	public Role getRoleById(Long id) {
		Role role = roleMapper.selectByPrimaryKey(id);
		return role;
	}

}
